<template>
    <div>
        <div class="header" style="background-color: white">
            <el-page-header @back="goBack" content="电子归档">
            </el-page-header>
        </div>
        <el-divider></el-divider>
        <el-tabs v-model="activeName" type="card">
            <el-tab-pane label="案件归档" name="ajgd">
                <OnFile v-on:gotoMy="gotoMy1"></OnFile>
            </el-tab-pane>
            <el-tab-pane label="我的电子文档" name="dzwd">
                <MyOnFile></MyOnFile>
            </el-tab-pane>
        </el-tabs>
    </div>
</template>

<script>

    import OnFile from './OnFile'
    import MyOnFile from './MyOnFile'

                export default {
                    name: "",
                    components: {
                        OnFile,
                        MyOnFile,
                    },
                    data(){
                        return{
                            activeName:'ajgd'
                        }
                    },
                    methods: {
                        gotoMy1(){
                            this.activeName='dzwd'
                        },
                        goBack(){
                            history.back()
                        }
                    }
            }
</script>

<style scoped>

</style>
